package cn.zebra.dev.net.prot;

/**
 * 端口
 *
 * @author runnable@sina.cn
 */
public class Port {
    /**
     * 端口号
     */
    private Integer port;

    /**
     * 如果该端口还在使用则为 true, 否则为false
     */
    private Boolean flag = Boolean.FALSE;

    /**
     * 错误信息
     */
    private String errorMessage;

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public Boolean getFlag() {
        return flag;
    }

    public void setFlag(Boolean flag) {
        this.flag = flag;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    @Override
    public String toString() {
        return "Port{" +
                "port=" + port +
                ", flag=" + flag +
                ", errorMessage='" + errorMessage + '\'' +
                '}';
    }
}
